<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- 上述3个meta标签必须放在最前面，任何其他内容都必须跟随其后！ -->
    <title>Ymall</title>
    <!-- Bootstrap样式 -->
    <link rel="stylesheet" href="index/css/bootstrap.css">
    <!-- jQuery (Bootstrap 的所有 JavaScript 插件都依赖 jQuery，所以必须放在前边) -->
    <script src="js/jquery-3.4.1.min.js"></script>
    <!-- 加载 Bootstrap 的所有 JavaScript 插件。你也可以根据需要只加载单个插件。 -->
    <script src="js/bootstrap.js"></script>

    <link rel="stylesheet" href="index/css/Ymall.css">
</head>
<body>

<!-- navbar导航栏 -->
<nav class="navbar navbar-default">
    <div class="container-fluid" id="navbar">
        <div class="row clearfix">
            <div class="col-md-1 column">
            </div>
            <div class="col-md-10 column">
                <div class="navbar-header">
                    <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
                        <span class="sr-only">Toggle navigation</span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                    </button>
                    <a class="navbar-brand" href="#"><img class="img-logo" src="index/img/logol.png" alt=""></a>
                </div>

                <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
                    <ul class="nav navbar-nav">
                        <li><a href="Ymall.html"><span class="span-font">首页</span><span class="sr-only">(current)</span></a></li>
                        <li><a href="index/Mall.html"><span class="span-font">购物商城</span> </a></li>
                        <li><a href="#"><span class="span-font">求购商城</span> </a></li>
                        <li><a href="#"><span class="span-font">购物车</span> </a></li>
                        <li class="dropdown">
                            <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false"><span class="span-font">反馈与意见</span> <span class="caret"></span></a>
                            <ul class="dropdown-menu">
                                <li><a href="#"><span class="span1-font">反馈</span></a></li>
                                <li role="separator" class="divider"></li>
                                <li><a href="#"><span class="span1-font">意见</span></a></li>
                            </ul>
                        </li>
                        <li class="dropdown">
                            <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false"><span class="span-font">联系我们</span> <span class="caret"></span></a>
                            <ul class="dropdown-menu">
                                <li><a href="#"><span class="span1-font">电话联系</span></a></li>
                                <li role="separator" class="divider"></li>
                                <li><a href="#"><span class="span1-font">邮箱联系</span></a></li>
                            </ul>
                        </li>
                    </ul>
                    <ul class="nav navbar-nav navbar-right">
                        <li id="login"><a href="index/Login.html"><span class="span-font">登录</span></a></li>
                        <li id="register"><a href="index/Register.html"><span class="span-font">注册</span></a></li>
                    </ul>
                    <form class="navbar-form navbar-right">
                        <div class="form-group">
                            <input type="text" class="form-control" placeholder="Search">
                        </div>
                        <!-- <button type="submit" class="btn btn-default"><img class="img-search" src="img/" alt=""></button> -->
                        <button type="submit" class="btn btn-default"><img class="img-search" src="index/img/search_icon.png" alt=""></button>
                    </form>
                </div>
            </div>
            <div class="col-md-1 column">
            </div>
        </div>
    </div>
</nav>

<!--carousel轮播图-->
<div class="container-fluid">
        <div class="row clearfix">
            <div class="col-md-1 column">
            </div>
            <div class="col-md-10 column"  id="carousel">
                <div class="carousel slide" id="carousel-647663">
<!--                    控制轮播效果-->
                    <ol class="carousel-indicators">
                        <li class="active" data-slide-to="0" data-target="#carousel-647663">
                        </li>
                        <li data-slide-to="1" data-target="#carousel-647663">
                        </li>
                        <li data-slide-to="2" data-target="#carousel-647663">
                        </li>
                    </ol>
<!--                    轮播的内容-->
                    <div class="carousel-inner">

                        <div class="item active">
<!--                            图片-->
                            <img class="img-carousel" alt="" src="https://yanxuan.nosdn.127.net/67a017d04550b9e4e52cb68867779234.png"/>
                            <!-- 内容-->
                            <div class="carousel-container">
                                <h4>
                                    Third Thumbnail label
                                </h4>
                                <br>
                                <p>
                                    Cras justo odio, dapibus ac facilisis in, egestas eget quam. Donec id elit
                                    non mi porta gravida at eget metus. Nullam id dolor id nibh ultricies vehicula ut id elit.
                                </p>
                            </div>
                        </div>
                        <div class="item">
                            <img class="img-carousel" alt="" src="
https://yanxuan.nosdn.127.net/833424c94daac4e374d40ab96ca32c80.png"/>
                            <div class="carousel-container">
                                <h4>
                                    Third Thumbnail label
                                </h4>
                                <br>
                                <p>
                                    Cras justo odio, dapibus ac facilisis in, egestas eget quam. Donec id elit
                                    non mi porta gravida at eget metus. Nullam id dolor id nibh ultricies vehicula ut id elit.
                                </p>
                            </div>
                        </div>
                        <div class="item">
                            <img class="img-carousel" alt="" src="https://yanxuan.nosdn.127.net/b89656eb08beb9f48a8592eeead40b6b.png"/>
                            <div class="carousel-container">
                                <h4>
                                    Third Thumbnail label
                                </h4>
                                <br>
                                <p>
                                    Cras justo odio, dapibus ac facilisis in, egestas eget quam. Donec id elit
                                    non mi porta gravida at eget metus. Nullam id dolor id nibh ultricies vehicula ut id elit.
                                </p>
                            </div>
                        </div>
                    </div>
<!--                    控制左右滑动-->
                        <a class="left carousel-control" href="#carousel-647663" data-slide="prev">
                            <span class="glyphicon glyphicon-chevron-left"></span>
                        </a>
                        <a class="right carousel-control" href="#carousel-647663" data-slide="next">
                            <span class="glyphicon glyphicon-chevron-right"></span>
                        </a>
                    </div>
                </div>
            <div class="col-md-1 column">
            </div>
        </div>
</div>

<!--goods商品-->
<div class="container-fluid">

    <div class="row clearfix">
        <div class="col-md-1 column">
        </div>
        <div class="col-md-10 column">
            <div class="goods-frame">
                <h1 class="h1-goods">精选商品</h1>
                <div class="row">
                    <div class="col-md-4">
                        <div class="thumbnail">
                            <img class="img-thumbnail" alt="300x200" src="index/img/goods1.jpg" />
                            <div class="caption">
                                <h3>
                                    Thumbnail label
                                </h3>
                                <p>
                                    Cras justo odio, dapibus ac facilisis in, egestas eget quam. Donec id elit non mi porta gravida at eget metus. Nullam id dolor id nibh ultricies vehicula ut id elit.
                                </p>
                                <p>
                                    <a class="btn btn-primary" href="#">点击购买</a>
                                </p>
                            </div>
                        </div>
                    </div>
                    <div class="col-md-4">
                        <div class="thumbnail">
                            <img alt="300x200" src="index/img/goods1.jpg" />
                            <div class="caption">
                                <h3>
                                    Thumbnail label
                                </h3>
                                <p>
                                    Cras justo odio, dapibus ac facilisis in, egestas eget quam. Donec id elit non mi porta gravida at eget metus. Nullam id dolor id nibh ultricies vehicula ut id elit.
                                </p>
                                <p>
                                    <a class="btn btn-primary" href="#">点击购买</a>
                                </p>
                            </div>
                        </div>
                    </div>
                    <div class="col-md-4">
                        <div class="thumbnail">
                            <img alt="300x200" src="index/img/goods1.jpg" />
                            <div class="caption">
                                <h3>
                                    Thumbnail label
                                </h3>
                                <p>
                                    Cras justo odio, dapibus ac facilisis in, egestas eget quam. Donec id elit non mi porta gravida at eget metus. Nullam id dolor id nibh ultricies vehicula ut id elit.
                                </p>
                                <p>
                                    <a class="btn btn-primary" href="#">点击购买</a>
                                </p>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="col-md-1 column">
        </div>
    </div>

</div>

<!--introduce团队介绍-->
<div class="container-fluid">
    <div class="row clearfix">
        <div class="col-md-1 column">
        </div>
        <div class="col-md-10 column">
            <div id="introduce-frame">
                <div class="row clearfix">
                    <div class="col-md-4 column">
                        <blockquote class="blockquote">
                            <p>
                                <strong>关于我们</strong>
                            </p> <small>Someone famous Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.<cite>Source Title</cite></small>
                        </blockquote>
                    </div>
                    <div class="col-md-4 column">
                        <blockquote>
                            <p>
                                <strong>团队信息</strong>
                            </p> <small>Someone famous Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.<cite>Source Title</cite></small>
                        </blockquote>
                    </div>
                    <div class="col-md-4 column">
                        <blockquote>
                            <p>
                                <strong>版权声明</strong>
                            </p> <small>Someone famous Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.<cite>Source Title</cite></small>
                        </blockquote>
                    </div>
                </div>
            </div>
        </div>
        <div class="col-md-1 column">

        </div>
    </div>
</div>

<!--copyright版权说明-->
<div class="container-fluid">
    <div class="row clearfix">
        <div class="col-md-1 column">
        </div>
        <div class="col-md-10 column">
            <div id="copyRight-frame">
                <strong>Copyright © 2017-2200.Company name All rights reserved.</strong>
            </div>
        </div>
        <div class="col-md-1 column">
        </div>
    </div>
</div>
<script>
    $.get("http://localhost:8080/ycumall/UserServlet?method=getInfo", function (data) {
        console.log(data);
        if(data.data != null){
            $("#login").html('<a href="#" style="color: black;font-size: 16px;">'+data.data+'</a>');
            $("#register").html('<a href="http://localhost:8080/ycumall/UserServlet?method=outLogin" style="color: black;font-size: 16px;">登出</a>');
            console.log(data.data);
        }
    });
</script>
</body>
</html>